package com.system.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.system.common.bean.Payment;

import java.util.List;

public interface IPaymentService {

    Payment getPaymentById(Integer id);

    Payment getPaymentByOrderNo(String orderno);

    void addPayment(Payment payment);

    void updatePayment(Payment payment);

    void deletePayment(Integer id);

    void updateStatus(Integer id, Integer status); // 0:未支付 1:支付成功 2:支付失败 3:已退款

    List<Payment> getPaymentList();

    IPage<Payment> getPage(Payment payment, Page<Payment> page);
}
